package person.aoao.library.entity;

import java.io.Serializable;
import java.util.List;

/**
 * (BookList)实体类
 *
 * @author makejava
 * @since 2023-05-05 10:15:41
 */
public class BookList implements Serializable,Comparable<BookList> {
    @Override

    public int compareTo(BookList b){
        return Integer.parseInt(String.valueOf(b.borrowCount-this.borrowCount));
    }

    private static final long serialVersionUID = -18652919607031177L;
    /**
     * 图书编号
     */
    private Integer bookid;
    /**
     * 图书名字
     */
    private String bookname;

    public TypeList getTypeList() {
        return typeList;
    }

    public void setTypeList(TypeList typeList) {
        this.typeList = typeList;
    }

    private TypeList typeList;
    /**
     * 图书作者
     */
    private String author;
    /**
     * 图书类型
     */
    private Integer booktype;
    /**
     * 图书ISBN
     */
    private String isbn;
    /**
     * 图书内容
     */
    private String content;
    /**
     * 图书总数
     */
    private Integer bookcount;
    /**
     * 图书封面
     */
    private String bookimage;
    /**
     * 图书现有总数
     */
    private Integer bookcountnow;

    private long borrowCount;

    public long getBorrowCount() {
        return borrowCount;
    }

    public void setBorrowCount(long borrowCount) {
        this.borrowCount = borrowCount;
    }

    public List<BorrowList> getBorrowList() {
        return borrowList;
    }

    public void setBorrowList(List<BorrowList> borrowList) {
        this.borrowList = borrowList;
    }

    private List<BorrowList> borrowList;


    public Integer getBookid() {
        return bookid;
    }

    public void setBookid(Integer bookid) {
        this.bookid = bookid;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Integer getBooktype() {
        return booktype;
    }

    public void setBooktype(Integer booktype) {
        this.booktype = booktype;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getBookcount() {
        return bookcount;
    }

    public void setBookcount(Integer bookcount) {
        this.bookcount = bookcount;
    }

    public String getBookimage() {
        return bookimage;
    }

    public void setBookimage(String bookimage) {
        this.bookimage = bookimage;
    }

    public Integer getBookcountnow() {
        return bookcountnow;
    }

    public void setBookcountnow(Integer bookcountnow) {
        this.bookcountnow = bookcountnow;
    }

}

